<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../conf.js"></script>
</head>
<body>
    <div id="chart" style="width: 50px;height:50px;background-color:blueviolet;"></div>
    <input type="button" onclick="save()" value="上传" />
    <script type="module">
        import "../lib/jquery-3.6.0.min.js";
        import "../lib/html2canvas.min.js";
        import * as utils from '../modules/utils.js'
        window.save = function (){
            utils.savepic('chart','xxxss');

        }

    </script>
</body>
</html>